import java.util.Scanner;

public class fenge {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String line = scanner.nextLine();
        int i = line.length() % 8;
        if (i!=0) {
            for (int j = 0; j <8-i ; j++) {
            line+="0";
        }
        }

        //左闭右开
        /*System.out.println(line.substring(0,8));*/

        while (line.length()>=8){

            System.out.println(line.substring(0, 8));
            line = line.substring(8);
        }
    }
}
